import request from '@/utils/request'

// 查询优惠券用户记录列表
export function listCouponUser(query) {
  return request({
    url: '/business/couponUser/list',
    method: 'get',
    params: query
  })
}

// 查询优惠券用户记录详细
export function getCouponUser(id) {
  return request({
    url: '/business/couponUser/' + id,
    method: 'get'
  })
}

// 新增优惠券用户记录
export function addCouponUser(data) {
  return request({
    url: '/business/couponUser',
    method: 'post',
    data: data
  })
}

// 修改优惠券用户记录
export function updateCouponUser(data) {
  return request({
    url: '/business/couponUser',
    method: 'put',
    data: data
  })
}

// 删除优惠券用户记录
export function delCouponUser(id) {
  return request({
    url: '/business/couponUser/' + id,
    method: 'delete'
  })
}

// 导出优惠券用户记录
export function exportCouponUser(query) {
  return request({
    url: '/business/couponUser/export',
    method: 'get',
    params: query
  })
}